<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use kartik\select2\Select2;
/* @var $this yii\web\View */
/* @var $model app\models\ChatAssigned */

$this->title = 'Update Chat Assigned: ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Chat Assigneds', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="chat-assigned-update">

    <h1><?= Html::encode($this->title) ?></h1>
<div class="chat-assigned-form">

    <?php $form = ActiveForm::begin(); ?>
     <div class='file_type' style='display:flex'>
        <?php
            echo $form->field($model, 'user_id')->widget(Select2::classname(), [
                'data' => $userData,
                'options' => ['placeholder' => '请输入内容类型','name'=>'user_id','class'=>'search1-1'],
                'pluginOptions' => [
                    'allowClear' => true
                ],
            ]);
            echo $form->field($model, 'source')->widget(Select2::classname(), [
                'data' => $sourceData,
                'options' => ['placeholder' => '请输入文件类型','name'=>'source'],
                'pluginOptions' => [
                    'allowClear' => true
                ],
            ]);      
        ?>
        </div>
    
    

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
    <?php //echo $this->render('_form', ['model' => $model,]) 
        ?>

</div>
